import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
const routes: Array<RouteRecordRaw> = [
    // 项目打开后进入的默认地址
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/index',
        name:"index",
        component: () => import('@/views/index.vue')
    },
    {
        path: '/receiptOrder',
        name:"receiptOrder",
        component: () => import('@/views/receiptOrder.vue')
    },
    {
        path: '/receiptBuy',
        name:"receiptBuy",
        component: () => import('@/views/receiptBuy.vue')
    },
    {
        path: '/receiptSale',
        name:"receiptSale",
        component: () => import('@/views/receiptSale.vue')
    },
    {
        path: '/receiptOther',
        name:"receiptOther",
        component: () => import('@/views/receiptOther.vue')
    },
    {
        path: '/stasticsStock',
        name:"stasticsStock",
        component: () => import('@/views/stasticsStock.vue')
    },
    {
        path: '/stasticsBuy',
        name:"stasticsBuy",
        component: () => import('@/views/stasticsBuy.vue')
    },
    {
        path: '/stasticsSale',
        name:"stasticsSale",
        component: () => import('@/views/stasticsSale.vue')
    },
    {
        path: '/settingCustomer',
        name:"settingCustomer",
        component: () => import('@/views/settingCustomer.vue')
    },
    {
        path: '/settingCategory',
        name:"settingCategory",
        component: () => import('@/views/settingCategory.vue')
    },
    {
        path: '/settingGoods',
        name:"settingGoods",
        component: () => import('@/views/settingGoods.vue')
    },
    {
        path: '/settingGoodsUnit',
        name:"settingGoodsUnit",
        component: () => import('@/views/settingGoodsUnit.vue')
    },
]
const router = createRouter({
    history: createWebHashHistory(), // 本项目采用了哈希模式
    routes
})
export default router
